#include "mainwindow.hpp"
#include <QApplication>
#include <QGLWidget>
#include <csignal>
#include <errno.h>
#include <gflags/gflags.h>
#include <glog/logging.h>
#include <iostream>
#include <malloc.h>
#include <ros/ros.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <thread>
#include <unistd.h>
#include <boost/filesystem.hpp>
int main(int argc, char *argv[]) {
    std::string log_dir = "/home/pi/log/latest/";
    FLAGS_log_dir = log_dir;
    google::ParseCommandLineFlags(&argc, &argv, true);
    google::InitGoogleLogging(argv[0]);
    ros::init(argc, argv, "remote_node");
    QApplication app(argc, argv);
    MainWindow main_window;
    main_window.showMaximized();
    int result = app.exec();
    if (ros::isInitialized()) {
        ros::shutdown();
    }
    return result;
}
